import request from '@/utils/request'

export default {

  getList: function(data) {
    return request({
      url: '/cusOrder/listByPage',
      method: 'post',
      data
    })
  },
  save: function(data) {
    return request({
      url: '/cusOrder/save',
      method: 'post',
      data
    })
  },
  changeStatus: function(id) {
    return request({
      url: '/cusOrder/changeStatus/'+id,
      method: 'get'
    })
  },
  remove: function(id) {
    return request({
      url: '/cusOrder/delete/'+id,
      method: 'get'
    })
  },
  getGoodsListByOrderId: function(id) {
    return request({
      url: '/cusOrder/getGoodsListByOrderId/'+id,
      method: 'get'
    })
  },
  outBout: function(id) {
    return request({
      url: '/cusOrder/outBout/'+id,
      method: 'get'
    })
  },
  flushOrder: function(){
    return request({
      url: '/cusOrder/flushOrder',
      method: 'get'
    })
  },
  backOrder: function(id) {
    return request({
      url: '/cusOrder/backOrder/'+id,
      method: 'get'
    })
  }
}
